import React, { Component } from 'react'
import Catelist from 'components/catelist/Catelist'
export default class Classfy extends Component {
    constructor(){
        super();
        this.state={
            nav:'热门'
        }
    }
    changeNav(nav){
        this.setState({
            nav
        })
    }
    render() {
        return (
            <div>
               <Catelist {...this.props} 
               nav={this.state.nav}
               change={(nav)=>this.changeNav(nav)}></Catelist>
            </div>
        )
    }
    componentDidMount(){

    }
}
